<!DOCTYPE HTML>
<html>
<head>
    <meta charset="UTF-8">
    <title></title>
    <title>CSS Regions: 3D transform on named flow content with perspective()</title>
    <link rel="author" title="David Alcala" href="mailto:dalcala@adobe.com">
    <link rel="reviewer" title="Rebecca Hauck" href="mailto:rhauck@adobe.com"> <!-- 07-15-2013 -->
    <link rel="help" href="http://www.w3.org/TR/css3-regions/#the-flow-into-property">
    <link rel="help" href="http://www.w3.org/TR/css3-regions/#the-flow-from-property">
    <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#three-d-transform-functions">
    <link rel="match" href="reference/regions-transforms-016-ref.html">
    <meta name="assert" content="This test checks that a 3D transform is applied with perspective to named flow content.">
    <style>
    #region {
        width: 300px;
        height: 300px;
        position: relative;
        flow-from: f;
    }
    #named-flow {
        width: 200px;
        height: 200px;
        margin: 0 auto 60px;
        background-color: green;
        flow-into: f;
        transform: perspective(600px) rotateX(45deg);
    }
    #div-red-parent {
        position: relative;
    }
    .div-red {
        width: 48px;
        height: 48px;
        position: absolute;
        background-color: red;
    }
    #div-red1 {
        left: 64px;
        top: 38px;
    }
    #div-red2 {
        left: 191px;
        top: 38px;
    }
    #div-red3 {
        left: 48px;
        top: 131px;
    }
    #div-red4 {
        left: 207px;
        top: 131px;
    }
    </style>
</head>
<body>
    <p>The test passes if you see a green trapezoid and no red.</p>
    <!-- This test fails in WebKit.  See this bug: https://bugs.webkit.org/show_bug.cgi?id=114293 -->
    <div id="div-red-parent">
        <div class="div-red" id="div-red1"></div>
        <div class="div-red" id="div-red2"></div>
        <div class="div-red" id="div-red3"></div>
        <div class="div-red" id="div-red4"></div>
    </div>
    <div id="named-flow"></div>
    <div id="region"></div>

</body>
</html>